package com.ruoyi.project.records.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

public class DocterWork  extends BaseEntity {
    private String regId;
    private Integer dId;
    private String dName;
    private Double regPrice;
    private String patiName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date regSdate;
    private Integer count;

    public DocterWork() {
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public DocterWork(String regId, Integer dId, String dName, Double regPrice, String patiName, Date regSdate, Integer count) {
        this.regId = regId;
        this.dId = dId;
        this.dName = dName;
        this.regPrice = regPrice;
        this.patiName = patiName;
        this.regSdate = regSdate;
        this.count = count;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DocterWork that = (DocterWork) o;
        return Objects.equals(regId, that.regId) &&
                Objects.equals(dId, that.dId) &&
                Objects.equals(dName, that.dName) &&
                Objects.equals(regPrice, that.regPrice) &&
                Objects.equals(patiName, that.patiName) &&
                Objects.equals(regSdate, that.regSdate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(regId, dId, dName, regPrice, patiName, regSdate);
    }

    @Override
    public String toString() {
        return "DocterWork{" +
                "regId='" + regId + '\'' +
                ", dId=" + dId +
                ", dName='" + dName + '\'' +
                ", regPrice=" + regPrice +
                ", patiName='" + patiName + '\'' +
                ", regSdate=" + regSdate +
                '}';
    }

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }

    public Integer getdId() {
        return dId;
    }

    public void setdId(Integer dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public Double getRegPrice() {
        return regPrice;
    }

    public void setRegPrice(Double regPrice) {
        this.regPrice = regPrice;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    public Date getRegSdate() {
        return regSdate;
    }

    public void setRegSdate(Date regSdate) {
        this.regSdate = regSdate;
    }
}
